<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/9/11
  Time: 11:36
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
   <link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/static/css/bootstrap.min.css">
</head>

<body>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/js/jquery-3.4.1.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/js/bootstrap.min.js"></script>
<%=request.getContextPath()%><br>
<div class="container">
    <div class="row">
        <div class="col-lg-12">
            <table class="table table-bordered">
                <tr>
                    <th></th>
                    <th>用户名</th>
                    <th>邮箱</th>
                    <th>性别</th>
                    <th>状态码</th>
                    <th>角色</th>
                    <th>激活状态</th>
                    <th></th>
                </tr
                    <c:forEach items="${ulist.list}" var="list">
                    <tr>
                        <th></th>
                        <th>${list.uname}</th>
                        <th>${list.email}</th>
                        <th>${list.gender}</th>
                        <th>${list.flag}</th>
                        <th>${list.role}</th>
                        <th>${list.code}</th>
                        <th><a href="/user/del/${list.uid}">删除</a>|<a href="/user/one/${list.uid}">修改</a></th>
                    </tr>
                    </c:forEach>
            </table>
            <div class="row">
                <div class="col-md-8">
                    <nav aria-label="Page navigation">
                        <ul class="pagination">
                            <li>
                                <a href="#" aria-label="Previous">
                                    <span aria-hidden="true">&laquo;</span>
                                </a>
                            </li>
                            <c:forEach begin="${ulist.navigateFirstPage}" end="${ulist.navigateLastPage}" step="1" var="p">
                            <li><a href="/user/all2/${p}">${p}</a></li>
                            </c:forEach>
                            <li>
                                <a href="#" aria-label="Next">
                                    <span aria-hidden="true">&raquo;</span>
                                </a>
                            </li>
                        </ul>
                    </nav>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>
